<?php

namespace App\Http\Controllers\Activity;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use LotteryService;
class LotteryController extends Controller
{
    public function index()
    {
        return view('app.activity.lottery', [
            'openId' => \Auth::guard('wechat')->user()->open_id,
        ]);
    }

    public function lotteryList()
    {
        $lottery_list = LotteryService::lotteryList();
        return view('app.activity.prize', [
           'lottery_list' => $lottery_list
        ]);
    }
}
